package com.tesco.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tesco.entity.domin.YgOrder;

import java.util.List;


public interface YgOrderService extends IService<YgOrder> {

    /**
     * 新增订单
     * @param username
     * @param spid
     * @return
     */
    Boolean addOrderForGood(String username,int spid);

    /**
     * 用户查询订单
     * @param username
     * @return
     */
    List<YgOrder> userGoodList(String username);

    /**
     * 配送员查询订单
     * @param username
     * @return
     */
    List<YgOrder> deliveryGoodList(String username);

    /**
     * 商家查询订单
     * @param username
     * @return
     */
    List<YgOrder> businessGoodList(String username);

    /**
     * 根据订单id查询订单
     * @param ddid
     * @return
     */
    YgOrder getOrderInfo(int ddid);

}

